﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace LambdaManAi
{
    public class Locals : Dictionary<int, Expression<Func<object>>>
    {
        private object[] _args = null;

        public Locals()
        {
        }

        public Locals(object[] args)
        {
            LoadParams(args);
        }

        public new object this[int key]
        {
            get { throw new NotImplementedException(); }
        }

        public Expression<Func<object>> GetExpression(int key)
        {
            return base[key];
        }

        public void LoadParams(object[] args)
        {
            _args = args;
        }
    }
}
